package com.cheyun.netsalev3.repository

import androidx.lifecycle.LiveData
import com.cheyun.netsalev3.bean.Search
import com.cheyun.netsalev3.dao.SearchDao
import com.cheyun.netsalev3.utils.runOnIoThread

class SearchRepository(var searchDao: SearchDao) {
    fun getlist(): LiveData<List<Search>> {
        return searchDao.getSearchList()
    }

    fun deleteTabe() {
        runOnIoThread {
            searchDao.deleteTabe()
        }
    }
}